+2007-09-09 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkiconview.c (gtk_icon_view_item_hit_test): Add a
+ bounding box test that will avoid getting the individual cell
+ boxes if they haven't been calculated yet. (#404541)
+
2007-09-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaction.c:
GList *l;
GdkRectangle box;
+ if (MIN (x + width, item->x + item->width) - MAX (x, item->x) <= 0 ||
+ MIN (y + height, item->y + item->height) - MAX (y, item->y) <= 0)
+ return FALSE;
+
for (l = icon_view->priv->cell_list; l; l = l->next)
{
GtkIconViewCellInfo *info = (GtkIconViewCellInfo *)l->data;
GtkIconViewCellInfo *info,
GdkRectangle *cell_area)
{
+ g_return_if_fail (info->position < item->n_cells);
+
if (icon_view->priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{
cell_area->x = item->box[info->position].x - item->before[info->position];
GtkIconViewCellInfo *info,
GdkRectangle *box)
{
+ g_return_if_fail (info->position < item->n_cells);
+
*box = item->box[info->position];
}